$(function(){
	$('.blog_card_comment_click').click(function(){
		let key = $(this).attr('key');
		$('#'+key).slideToggle();
	});
	var blogListLable = $('.blog_list_label');
	
	var currentBlogList = $('#blog_list_1');
	
	blogListLable.click(function(){
		blogListLable.removeClass('blog_list_label_active');
		let tmp = $(this);
		tmp.addClass('blog_list_lable_active');
		
		currentBlogList.fadeOut(200,function(){
		let key = tmp.attr('key');	
		currentBlogList = $('#'+key);
		currentBlogList.fadeIn(100);
		});
	});

// 对话框
	var editModel = $('.model');
	var userName = $('.user_name');
	var userSign = $('.user_sign');
	var userNameInput = $('#user_name_input');
	var userSignInput = $('#user_sign_input');
	
	$("#button_edit").click(function(){
		editModel.css('display','block');
		editModel.fadeIn(200);
		userNameInput.val(userName.text());
		userSignInput.val(userSign.text());
		
	});
	$('#edit_cancel').click(function(){
		editModel.css('display','none');
		editModel.fadeOut(200);
	})
	
	$("#edit_submit").click(function(){
		userName.text(userNameInput.val());
		userSign.text(userSignInput.val());
		editModel.fadeOut(200);
	});
	
});







